package com.jeecg.p3.system.entity;

import org.jeecgframework.p3.core.utils.persistence.Entity;

import java.util.List;

/**
 * @author binbin
 * @create 2020-09-09 10:25
 */
public class Product implements Entity<Long> {

    /**
     *序号
     */
    private Long id;

    @Override
    public Long getId() {
        return id;
    }

    @Override
    public void setId(Long id) {
        this.id=id;
    }

    private String name;//商品名称

    private String price;//原价

    private String hyPrice;//会员价

    private String isPublic;//是否公开课，1是0否

    private String realPrice;//原价-优惠券金额=实际付款金额（页面使用）

    private String context;//商品明细

    private String bigImg;//商品封面

    private int sumnum;//共多少课

    private int opennum;//已开多少课

    private int buynum;//购买数量，学习数量

    private String opt1;//主讲人

    private String opt2;//

    private String opt3;//

    private List<Course> lstCourse;//产品课程列表，查询发送前台方便显示增加属性

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPrice() {
        return price;
    }

    public void setPrice(String price) {
        this.price = price;
    }

    public String getHyPrice() {
        return hyPrice;
    }

    public void setHyPrice(String hyPrice) {
        this.hyPrice = hyPrice;
    }

    public String getContext() {
        return context;
    }

    public void setContext(String context) {
        this.context = context;
    }

    public String getBigImg() {
        return bigImg;
    }

    public void setBigImg(String bigImg) {
        this.bigImg = bigImg;
    }

    public int getSumnum() {
        return sumnum;
    }

    public void setSumnum(int sumnum) {
        this.sumnum = sumnum;
    }

    public int getOpennum() {
        return opennum;
    }

    public void setOpennum(int opennum) {
        this.opennum = opennum;
    }

    public int getBuynum() {
        return buynum;
    }

    public void setBuynum(int buynum) {
        this.buynum = buynum;
    }

    public String getOpt1() {
        return opt1;
    }

    public void setOpt1(String opt1) {
        this.opt1 = opt1;
    }

    public String getOpt2() {
        return opt2;
    }

    public void setOpt2(String opt2) {
        this.opt2 = opt2;
    }

    public String getOpt3() {
        return opt3;
    }

    public void setOpt3(String opt3) {
        this.opt3 = opt3;
    }


    public List<Course> getLstCourse() {
        return lstCourse;
    }

    public String getRealPrice() {
        return realPrice;
    }

    public void setRealPrice(String realPrice) {
        this.realPrice = realPrice;
    }

    public void setLstCourse(List<Course> lstCourse) {
        this.lstCourse = lstCourse;
    }

    public String getIsPublic() {
        return isPublic;
    }

    public void setIsPublic(String isPublic) {
        this.isPublic = isPublic;
    }

    public Product() {
    }

    public Product(Long id, String name, String price, String hyPrice, String context, String bigImg, int sumnum, int opennum, int buynum, String opt1, String opt2, String opt3) {
        this.id = id;
        this.name = name;
        this.price = price;
        this.hyPrice = hyPrice;
        this.context = context;
        this.bigImg = bigImg;
        this.sumnum = sumnum;
        this.opennum = opennum;
        this.buynum = buynum;
        this.opt1 = opt1;
        this.opt2 = opt2;
        this.opt3 = opt3;
    }
}
